// import FmsxButton from '@fmsx/components/index';
//
// export { FmsxButton };

import components from './components'
// import { App, Plugin } from 'vue'
import type { App, Plugin } from 'vue'

type SFCWithInstall<T> = T & Plugin & { name: string }

export const makeInstaller = (components: SFCWithInstall<any> [] = []) => {
  const install = (app: App) => {
    components.forEach((c) => app.use(c))
  }

  return {
    version: '1.0.0',
    install,
  }
}

export default makeInstaller( components )

